home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ues5.cern.ch
- From: Dan Pop <Dan.Pop@cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: Leap Years
- Date: Sun, 11 Feb 1996 04:19:07 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602110319.AA04429@ues5.cern.ch>
- References: <8BA8405.02C70020E1.uuout@sourcebbs.com>
- X-NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: mail1.cern.ch!ues5.cern.ch
-
- david.mohorn@sourcebbs.com (DAVID MOHORN) writes:
-
- >How do you feature out leap years? If its evenly divisible by 400 and
- >4?
-
- Amongst the _many_ merits of K&R (both editions) is that it answers this
- question. Time to read it.
-
- Hint: 1996 is a leap year, but it's not "evenly divisible by 400 and 4".
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-